package com.nana.framework.net
{
	import flash.events.Event;
	
	public class SocketEvent extends Event
	{
		public static var DATA_COMP:String = "dataComp";
		public static var SOCKET_CLOSE:String = "socketClose";
		public static var TRACE_EVENT:String = "traceEvent";
		
		private var _data:ByteArray;
		private var _cmd:int = 0;
		private var _res:int = 0;
		public var traceValue:String = "";
		
		public function SocketEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
		}

		public function get data():ByteArray
		{
			return _data;
		}

		public function set data(value:ByteArray):void
		{
			_data = value;
		}

		public function get cmd():int
		{
			return _cmd;
		}

		public function set cmd(value:int):void
		{
			_cmd = value;
		}

		public function get res():int
		{
			return _res;
		}

		public function set res(value:int):void
		{
			_res = value;
		}


	}
}